package net.yxsoft.service.common;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.jfinal.kit.HashKit;
import com.jfinal.kit.Ret;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

import net.yxsoft.kit.AESKit;
import net.yxsoft.message.MessageKit;
import net.yxsoft.quorum.QuorumKit;
import net.yxsoft.resource.ActionRes;
import net.yxsoft.resource.CacheRes;

import java.util.List;

public class ApiService {

  public static final ApiService me = new ApiService();




  /**
  * @MethodName: getPrivateKeyInfo
  * @Description: 获取private_key信息
  * @param: publickey
  * @return * @return java.lang.String
  * @throws
  * @date 2023/8/31 13:39
  * @author wj
  */
  public String getPrivateKeyInfo(String publickey){

    String privatekey = Db.queryStr("select account_private from ts_user where account_public = ? ", publickey);

    return privatekey;
  }



}
